﻿using Architecture.Domain;
using Architecture.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Repository.Impl
{
    public class MenuRoleRepository : BaseRepository<MenuRole>, IMenuRoleRepository
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="context">数据库上下文 </param>
        public MenuRoleRepository(EFCoreContext context) : base(context)
        {

        }

        /// <summary>
        /// 添加菜单角色关系
        /// </summary>
        /// <param name="menuRole">角色菜单</param>
        /// <returns>返回受影响的行数</returns>
        public async Task<int> AddMenuRole(MenuRole menuRole)
        {
            return await base.AddAsync(menuRole);
        }

    }
}
